import pytest

data = [
    {"uname": "ren", "pwd": "123"},
    {"uname": "qzcsbj", "pwd": "456"},
]


@pytest.fixture()
def login(request):
    print(f"当前返回的参数{request.param['uname']}-{request.param['pwd']}")
    return request.param


@pytest.mark.parametrize("login", data, indirect=True)
def test_case(login):
    print(f"uname：{login['uname']}，pwd：{login['pwd']}")
